package net.xfok.jni;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

public class JNITest extends Activity {
	private static String TAG="JNITest";
	private TextView tv;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        tv=(TextView)findViewById(R.id.text);
        String text=GetTest(null);
        Log.i(TAG, text);
        tv.setTag(text);
        
    }
    static { 
    	 System.loadLibrary("JNITest"); 
    } 
    public native String GetTest(Object o); 

}